package com.zb_study.reader;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class BufferedReader_ {
    public static void main(String[] args) throws IOException {

        String filePath = "e:\\story.txt";

        BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));

        String line;
        while ((line = bufferedReader.readLine())!=null) {
            System.out.println(line);
        }

        bufferedReader.close();
    }
}
